
<!doctype html>
 
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>jQuery UI Autocomplete - Default functionality</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
    <link rel="stylesheet" href="/resources/demos/style.css" />
    
</head>
<body>
 
<form action="search.php" method="post">
	Enter city:
	<input type="text" id="citysearch" />
 
	<br />
	<input type="submit" value="Search" />
</form>
 <script>
 jQuery(document).ready(function($){
	$('#citysearch').autocomplete({source:'suggestcity.php'});
});
 </script>
 
</body>
</html>